(function(){
		
	//2. 商家进货
	var bus_a = require("./1. 注册商家").bus_a;
	var ClassifyCon = require("../bus.classify/_con");
	var GoodsCon = require("../goods/_con");

	//仓库进货
	var goods_1_id = bus_a.importGoods({
		name:"肉片",
		price:100,
	},100);

	var goods_2_id = bus_a.importGoods({
		name:"上海青",
		price:100,
	},100);

	var goods_3_id = bus_a.importGoods({
		name:"荔枝肉",
		price:100,
	},100);

	console.log("商家的现有分类：",bus_a.getClassifys());

	var classify_1_id = bus_a.addClassify("吃");
	var classify_2_id = bus_a.addClassify("素食",classify_1_id);
	var classify_3_id = bus_a.addClassify("肉食");

	console.log("商家的现有分类详情：",JSON.stringify(bus_a.getClassifys()));

	console.log("归类商品")
	bus_a.moveGoodsToClassify(classify_2_id,goods_3_id);

	bus_a.moveGoodsToClassify(classify_2_id,goods_2_id);
	bus_a.moveGoodsToClassify(classify_3_id,goods_1_id);
	bus_a.moveGoodsToClassify(classify_3_id,goods_3_id);

	console.log("商家的现有分类详情：",JSON.stringify(bus_a.getClassifys()));

	console.log("再次整理树……");
	bus_a.moveClassify(classify_3_id,classify_1_id);
	console.log("商家的现有分类详情：",JSON.stringify(bus_a.getClassifys()));

	module.exports = {
		bus_a:bus_a
	};
}());
